package com.htl.exampro.paper.api;

import com.htl.exampro.base.model.ServerResponse;
import com.htl.exampro.paper.pojo.vo.PaperQuestionVO;
import io.swagger.v3.oas.annotations.Operation;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.PathVariable;

/**
 * PaperApi
 */
@FeignClient(name = "exam-pro-paper", contextId = "PaperQuestionApi", path = "/paper/paper-question")
public interface PaperQuestionApi {

    @Operation(summary = "查询试卷问题", description = "根据试卷ID和问题ID查询试卷问题关联信息")
    @GetMapping("/{paperId}/{questionId}")
    ServerResponse<PaperQuestionVO> queryPaperQuestion(@PathVariable("paperId") String paperId,
                                                       @PathVariable("questionId") String questionId);
}
